import { createStore } from 'vuex'
import state from './state'
import mutations from './mutations'
import actions from './actions'
import getters from './getters'
/*例子：
<script>
import {mapState,mapMutations} from 'vuex';

export default {
    computed: {
        ...mapState(['avatarUrl', 'login', 'userName'])
    },
    methods: {
        ...mapMutations(['logout'])
    }
}
</script>
*/

export default createStore({
    state,
    mutations,
    actions,
    getters
})